package com.hrms.hrms_employee.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hrms.common.entity.BaseEntity;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.Date;

/**
 * 合同表(StaffContract)表实体类
 *
 * @author makejava
 * @since 2025-01-17 17:11:36
 */
@SuppressWarnings("serial")
@Data
public class StaffContract extends BaseEntity {

    //原合同ID
    private Long contractId;
    //员工id
    private Long staffId;
    //部门
    private String department;
    //岗位
    private String station;
    //工号
    private String jobNumber;
    //合同类型 (0: 实习, 1: 正式)
    private Integer contract;
    //薪资
    private Double compensation;
    //签订日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date signDate;
    //开始日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    //到期日期
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expirationDate;
    //合同年限
    private Integer duration;
    //附件
    private String attachment;
    //状态
    private Integer state;
    //是否删除 (0: 启用, 1: 删除)
    private Integer isDeleted;

    }

